home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / jukebox / 00087.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  1.7 KB  |  33 lines

  1. on startMovie
  2.   global gygon, jukemessage, spritetime, spritelist
  3.   set gygon to the soundLevel
  4.   set jukemessage to EMPTY
  5.   set the centerStage to 1
  6.   set spritelist to [[83, 110, 131, 154, 173, 217, 239, 263, 305, 329], [97, 121, 164, 187, 229, 252, 296, 319], [98, 119, 98, 119, 158, 180, 217, 242, 263, 300, 323, 300, 323], [104, 127, 167, 190, 231, 253, 294, 316], [92, 121, 171, 198, 249, 276, 327], [87, 108, 132, 154, 197, 221, 243, 267, 308, 334], [83, 105, 125, 147, 178, 201, 221, 243, 274, 297, 317, 339], [83, 106, 128, 151, 173, 205, 228, 252, 275, 309, 334]]
  7.   set spritetime to [[134, 228, 396, 497, 598, 832, 941, 1028, 1184, 1367, 0, 0], [470, 579, 689, 798, 908, 1022, 1131, 1239, 0, 0], [1, 181, 310, 478, 612, 923, 1189, 1525, 1755, 2027, 2199, 2331, 2496, 0, 0], [119, 318, 525, 729, 935, 1041, 1143, 1246, 0, 0], [516, 626, 733, 838, 938, 1041, 1149, 0, 0], [147, 324, 521, 704, 928, 1092, 1281, 1469, 1665, 1853, 0, 0], [83, 160, 268, 359, 457, 543, 636, 734, 884, 963, 1047, 1140, 0, 0], [429, 683, 804, 909, 1144, 1400, 1519, 1639, 1758, 1864, 2121, 0, 0]]
  8.   set spritetime to spritetime * (11024 / 11127.0)
  9. end
  10.  
  11. on stopMovie
  12.   global mysoundlevel
  13.   set the soundLevel to mysoundlevel
  14.   puppetSound(0)
  15. end
  16.  
  17. on dohilite
  18.   global spritestep, spritelist, spritetime, tunenum
  19.   if the frame < marker("ferris wheel") then
  20.     exit
  21.   end if
  22.   if getAt(getAt(spritetime, tunenum), spritestep + 1) = 0 then
  23.     exit
  24.   end if
  25.   puppetSprite(5, 1)
  26.   if the timer > (getAt(getAt(spritetime, tunenum), spritestep + 1) - 40) then
  27.     set the visible of sprite 5 to 1
  28.     set the locV of sprite 5 to 34 + getAt(getAt(spritelist, tunenum), spritestep + 1)
  29.     set spritestep to spritestep + 1
  30.   end if
  31.   updateStage()
  32. end
  33.